﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Src="../Shared/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <title>首页</title>
    <uc1:Header ID="Header1" runat="server" />
    <style type="text/css">
        .spNum
        {
        	font-size:18px;
        	color:Red;
        	padding-left:5px;
        	font-weight:bold;
        }
        .tr1
        {
        	background:#ffffff;
        }
        .td1
        {
        	font-size:14px;
        	line-height:2;
        	background-color:#EFEFEF; border:1px solid #99BBE8;border-bottom:0;
        	padding-left:4px;
        }
        .td1_1
        {
        	font-size:14px;
        	line-height:2;
        	background-color:#EFEFEF; border:1px solid #99BBE8;border-bottom:0;border-top:0;
        	padding-left:4px;
        }
        .td2
        {
        	font-size:12px;
        	line-height:1.7;
        	border-top:1px solid #CCCCCC;
        	border-bottom:1px solid #CCCCCC;
        	border-right:1px solid #CCCCCC;
        	padding-left:4px;
        }
        .td2_1
        {
        	font-size:12px;
        	line-height:1.7;
        	border-top:1px solid #CCCCCC;
        	border-left:1px solid #99BBE8;
        	border-right:1px solid #99BBE8;
        	padding-left:4px;
        }
        .td2_left
        {
        	font-size:12px;
        	line-height:1.7;
        	border-left:1px solid #99BBE8;
        	border-top:1px solid #CCCCCC;
        	border-bottom:1px solid #CCCCCC;
        	border-right:1px solid #CCCCCC;
        	padding-left:4px;
        }
        .td2_right
        {
        	font-size:12px;
        	line-height:1.7;
        	border-right:1px solid #99BBE8;
        	border-top:1px solid #CCCCCC;
        	border-bottom:1px solid #CCCCCC;
        	padding-left:4px;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                type: "POST",
                url: "/Home/LoadData/",
                success: function (data) {
                    if (data != null) {
                        $("#sp_bz").text(data.bz);
                        $("#sp_mj").text(data.mj);
                        $("#sp_ff").text(data.ff);
                        $("#sp_hs").text(data.hs);


                        $("#sp_kc").text(data.kc);
                        $("#sp_wgh").text(data.wgh);
                        $("#sp_gqkc").text(data.ygqkc);
                        $("#sp_gqwgh").text(data.ygqwgh);
                        $("#sp_1gqkc").text(data.gqkc1);
                        $("#sp_1gqwgh").text(data.gqwgh1);
                        $("#sp_3gqkc").text(data.gqkc3);
                        $("#sp_3gqwgh").text(data.gqwgh3);
                    }
                },
                error: function () {

                }
            });
        });
    </script>
</head>
<body class="easyui-layout">
    <div data-options="region:'center',border:false" style="padding-top:5px;">
        <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
            <tbody>
                <tr>
                    <td align="left" colspan="4" class="td1">
                        服务器信息统计
                    </td>
                </tr>
                <tr class="tr1">
                    <td colspan="2" class="td2_left">
                        开机运行时长：<%=(System.Environment.TickCount/3600000).ToString("N2")%>小时
                    </td>
                    <td colspan="2" class="td2_right">
                        服务器时间：<%=DateTime.Now.ToString() %>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="4" class="td1_1">
                        今日详情
                    </td>
                </tr>
                <tr class="tr1">
                    <td align="left" class="td2_left">
                        包装<span class="spNum" id="sp_bz"></span>
                    </td>
                    <td align="left" class="td2">
                        灭菌<span class="spNum" id="sp_mj"></span>
                    </td>
                    <td align="left" class="td2">
                        发放<span class="spNum" id="sp_ff"></span>
                    </td>
                    <td align="left" class="td2_right">
                        回收<span class="spNum" id="sp_hs"></span>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="4" class="td1_1">
                        库存详情
                    </td>
                </tr>
                <tr class="tr1">
                    <td align="left" colspan="2" class="td2_left">
                        库存器械包总量<span class="spNum" id="sp_kc"></span>
                    </td>
                    <td align="left" colspan="2" class="td2_right">
                        未归还器械包总量<span class="spNum" id="sp_wgh"></span>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="4" class="td1_1">
                        系统预警详情
                    </td>
                </tr>
                <tr class="tr1">
                    <td align="left" colspan="2" class="td2_left">
                        已过期库存器械包总量<span class="spNum" id="sp_gqkc"></span>
                    </td>
                    <td align="left" colspan="2" class="td2_right">
                        已过期未归还器械包总量<span class="spNum" id="sp_gqwgh"></span>
                    </td>
                </tr>
                <tr class="tr1">
                    <td align="left" colspan="2" class="td2_left" style="border-bottom:0px;border-top:0px;">
                        1天内过期库存器械包总量<span class="spNum" id="sp_1gqkc"></span>
                    </td>
                    <td align="left" colspan="2" class="td2_right" style="border-bottom:0px;border-top:0px;">
                        1天内过期未归还器械包总量<span class="spNum" id="sp_1gqwgh"></span>
                    </td>
                </tr>
                <tr class="tr1">
                    <td align="left" colspan="2" class="td2_left" style="border-bottom:1px solid #99BBE8;">
                        3天内过期库存器械包总量<span class="spNum" id="sp_3gqkc"></span>
                    </td>
                    <td align="left" colspan="2" class="td2_right" style="border-bottom:1px solid #99BBE8;">
                        3天内过期未归还器械包总量<span class="spNum" id="sp_3gqwgh"></span>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
